package com.bocloud.controller;

import com.bocloud.model.Result;
import com.bocloud.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "/menu")
public class MenuController {


    @Autowired
    MenuService menuService;

    /**
     * 用途：获取菜单表中所有数据
     *
     * @param
     * @return Menu
     */
    @RequestMapping(value = "/getme")
    @ResponseBody
    public Result getAllMenu() {
        return new Result(true, menuService.getAllMenu(), "");
    }


}

